package com.umeng.comm.ui.activities;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.qianxx.draw.R;
import com.qianxx.base.BaseAty;
import com.umeng.comm.core.listeners.Listeners;
import com.umeng.comm.ui.fragments.FavoritesFragment;

/**
 * Created by summersoft on 2016/5/13.
 */
public class FavoritesActivity extends BaseAty{

    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(R.layout.favorites);
        FragmentTransaction bt = getSupportFragmentManager().beginTransaction();
        FavoritesFragment mFavoritesFragment = new FavoritesFragment().newFavoritesFragment();
        mFavoritesFragment.setOnResultListener(new Listeners.OnResultListener() {

            @Override
            public void onResult(int status) {
                finish();
            }
        });
        bt.add(R.id.favorites, mFavoritesFragment);
        bt.commit();
    }
}
